package com.sharein.auth.actions;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sharein.auth.business.UserManager;

public class isValidPassword implements Action{

	@Override
	public boolean execute(HttpServletRequest request,
			HttpServletResponse response) throws IOException {
		String shareinID = request.getParameter("shareinID");
		String password = request.getParameter("password");
		boolean isValidPassword = UserManager.isValidPassword(shareinID, password);
		response.getWriter().print(isValidPassword);
		return true;
	}

}
